c# get current date without time

36

c# get date without time -

var dateAndTime = DateTime.Now;
var date = dateAndTime.Date;

c# get current date without time -

String test = DateTime.Now.ToString("dd.MM.yyy");

c# today without time -

var dateAndTime = DateTime.Now;
var date = dateAndTime.Date;

Comments

Submit
0 Comments